+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
+Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
+
+ * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+ deleted node was "below" this path, then do not unref all nodes
+ between the deleted parent and the node this rowref is pointing too
+ (see added comment in gtk_tree_row_ref_deleted_callback),
+ (fixes #77977)
+
2002-04-26 Sven Neumann <sven@gimp.org>
* tests/testtreecolumns.c
/* We know it affects us. */
if (path->indices[i] == reference->path->indices[i])
{
- gtk_tree_row_reference_unref_path (reference->path, reference->model, reference->path->depth - 1);
+ if (reference->path->depth > path->depth)
+ /* some parent was deleted, trying to unref any node
+ * between the deleted parent and the node the reference
+ * is pointing to is bad, as those nodes are already gone.
+ */
+ gtk_tree_row_reference_unref_path (reference->path, reference->model, path->depth - 1);
+ else
+ gtk_tree_row_reference_unref_path (reference->path, reference->model, reference->path->depth - 1);
gtk_tree_path_free (reference->path);
reference->path = NULL;
}